package com.example.zwx.myapplication;

/**
 * Created by Administrator on 2016/1/26.
 */
public class Main {
    static int a[] = {9056, 4503, 574, 1689, 574, 560, 573, 561, 573, 561, 573, 561
            , 573, 561, 573, 561, 573, 557, 573, 561, 573, 1691, 573, 1690, 574,
            1690, 573, 1689, 574, 1689, 574, 1690, 573, 1690, 574, 1689, 573, 1690
            , 573, 1689, 574, 1689, 574, 1690, 574, 561, 574, 561, 574, 558, 574, 561
            , 574, 561, 574, 561, 574, 561, 574, 561, 574, 1691, 574, 1690, 574, 1689, 574, 39773};

    public static void main(String args[]) {
        /*byte[][] irDatas = BleUtil.process(a, 0);
        int index = irDatas.length;
        do {
            byte[] data = irDatas[irDatas.length - index];
            StringBuffer bf = new StringBuffer();
            bf.append("循环发送红外数据：");
            bf.append(irDatas.length - index + 1);
            bf.append("\n");
            for (int i = 0; i < data.length; i++) {
                bf.append(data[i]);
                if (!(i == data.length - 1)) {
                    bf.append(",");
                }

            }
            System.out.println(bf.toString());
            index--;
        } while (index > 0);*/

        procced();

    }


    public static void procced() {
        int[] VALUES = {1, 3, 5, 7, 9, 11, 13, 15};

        for (int i = 0; i < VALUES.length; i++) {
            int x = VALUES[i];
            for (int j = 0; j < VALUES.length; j++) {
                int y = VALUES[j];
                for (int m = 0; m < VALUES.length; m++) {
                    int z = VALUES[m];
                    if (x + y + z == 30) {
                        System.out.println("x:" + x + ",y:" + y + ",z:" + z);
                    }
                }
            }
        }
    }
}
